/*
 *
 *  * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 *
 *
 */

package com.iwindplus.base.operate.service;

import com.iwindplus.base.domain.dto.UserCaptchaValidDTO;
import com.iwindplus.base.domain.vo.ApiSignVO;
import com.iwindplus.base.domain.vo.UserBindVO;
import com.iwindplus.base.domain.vo.UserCaptchaValidVO;

/**
 * 操作业务层接口.
 *
 * @author zengdegui
 * @since 2024/4/28
 */
public interface OperateService {

    /**
     * 通过访问key获取API签名.
     *
     * @param accessKey 访问key
     * @return ApiSignVO
     */
    ApiSignVO getApiSign(String accessKey);

    /**
     * 校验用户绑定情况.
     *
     * @param userId 用户主键
     * @return UserBindVO
     */
    UserBindVO checkUserBind(Long userId);

    /**
     * 校验用户验证码是否正确.
     *
     * @param entity 对象
     * @return UserCaptchaValidVO
     */
    UserCaptchaValidVO checkCaptchaByUserId(UserCaptchaValidDTO entity);
}
